

cc.Class({
    extends: cc.Component,

    properties: {
        closeBtnNode: cc.Node,
        background: cc.Node,
    },



    onLoad() {
        this.closeBtnNode.on("click", this.onCloseBtn, this);
    },

    start() {

    },

    // update (dt) {},
    onCloseBtn() {
        this.background.active = true;
        this.node.active = false;
    }
});
